package com.whmall.service.crm.module.company.dao;
import com.whmall.service.crm.module.company.entity.CompanyIndustryTypeDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmall.service.crm.module.company.entity.CompanyIndustryTypeStrDO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CompanyIndustryTypeMapper extends BaseMapper<CompanyIndustryTypeDO>{

    /**
     * 获取公司对应的类型
     * 将一级二级细分全部拼接为 '-first-second-' 这种字符串为了避免逻辑处理上的异常
     * @param companyIdList
     * @return
     */
    List<CompanyIndustryTypeStrDO> getCompanyTypeMap(@Param("list") List<Long> companyIdList);


    List<CompanyIndustryTypeStrDO> selectByIdsShareLock(List<Long> idList);

}